﻿<Window 
    x:Class="MinecraftGPS.BookmarkWindow"
    x:ClassModifier="internal"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:controls="clr-namespace:MinecraftGPS.Controls"
    Title="GPS Bookmark" 
    ResizeMode="NoResize" 
    SizeToContent="WidthAndHeight" 
    Topmost="True" 
    WindowStartupLocation="CenterOwner"
    AllowsTransparency="True" 
    WindowStyle="None" 
    Background="{x:Null}" 
    Foreground="{DynamicResource TextBrush}"
    FocusManager.FocusedElement="{Binding ElementName=bookmarkName}"
>
    <controls:ClippingBorder CornerRadius="10" BorderThickness="1" SnapsToDevicePixels="True" BorderBrush="{DynamicResource ToolBarGripper}" Background="{DynamicResource WindowBackgroundBrush}">
        <DockPanel>
            <Grid DockPanel.Dock="Top" Background="{DynamicResource ControlBackgroundBrush}">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>
                
                <TextBlock Grid.Column="0" Text="GPS Bookmark" Margin="4,5"  />

                <Button x:Name="dragButton" Grid.Column="1" Template="{DynamicResource DragButtonTemplate}" />
                <Button x:Name="closeButton" Grid.Column="2" Content="X" Template="{DynamicResource CloseButtonTemplate}" Foreground="Red" Width="18" Height="18" Margin="4,5" />
            </Grid>

            <StackPanel>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0" Text="Name" VerticalAlignment="Center" Margin="2" />
                    <TextBox Grid.Column="1" x:Name="bookmarkName" Width="200" Margin="2" />
                </Grid>
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                    <Button Content="Cancel" HorizontalAlignment="Right" Width="50" Margin="2" IsCancel="True" />
                    <Button Content="OK" HorizontalAlignment="Right" Width="50" Margin="2" IsDefault="True" Click="OkClick" />
                </StackPanel>
            </StackPanel>
        </DockPanel>
    </controls:ClippingBorder>
</Window>
